package com.xxtx.trade.common.util.model;

import lombok.Data;

/**
 * 功能描述:
 *
 * @Params:
 * @Author: xuliang
 * @email: northly@live.com
 * @Date: 2020/1/14 10:54
 */
@Data
public class ResultMsg {
    private int code;

    private String message;

    /********************** 通用提示 **************************/
    public static ResultMsg SUCCESS = new ResultMsg(200,"操作成功");

    public static ResultMsg SERVER_ERROR = new ResultMsg(200,"系统繁忙");

    public static ResultMsg NOT_EXISTS_PAY = new ResultMsg(600,"无法识别的支付方式");

    /********************** sim 模块提示 1000000开关 **************************/
    public static ResultMsg SIM_ERROR_0001 = new ResultMsg(1000000,"此卡不允许登录系统");

    public static ResultMsg PREFIX_IS_NOT_EXISTS = new ResultMsg(1000001,"not exists current prefix");

    /********************** 订单 模块提示 2000000开关 **************************/
    public static ResultMsg PARAMS_ERROR = new ResultMsg(2000000,"请求参数错误");

    public static ResultMsg ORDER_DETAIL_ERROR = new ResultMsg(2000001,"订单明细不能为空");

    public static ResultMsg OPEN_ID_IS_EMPTY = new ResultMsg(2000002,"openId is empty");






    private ResultMsg(int code,String message){
        this.message = message;
        this.code = code;
    }

}
